<%@ page contentType="text/html; charset=utf-8" language="java"  %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%@include file="/static/common/header.jsp"%>
<%@include file="/static/common/easyui.jsp"%>
<script src="${ctx}/static/jquery/jquery.form.js" type="text/javascript"></script>
<link href="${ctx}/static/css/main.css" rel="stylesheet">
<script>	 
	function loadMenuOptButGridData(id){
		initOpernGridData('${ctx}/Mng/Menu/operateGridData?menuId='+id);
	}

	function initOpernGridData(_url){
		$('#menuOptButGridData').datagrid({
			url:_url,
			iconCls:'icon-bumen',
			method:'post', fit:true,
			nowrap: false,
			striped: true,
			collapsible:false, 
			idField:'customerId',
			columns:[[
				{field:'ck',checkbox:true},
				{field:'name',title:'名称',width:80}//,{field:'code',title:'代码',width:120}
			]],
			rownumbers:true
		});
	}

</script>
</head>
<body class="easyui-layout">
<div data-options="region:'center',collapsed:false">
   <ul class="easyui-tree" id="menuTreeObj" data-options="url:'${ctx}/Mng/Menu/treeGridData',animate:true,checkbox:true,onClick : function(node) {loadMenuOptButGridData(node.id);}"></ul>
</div>
<div data-options="region:'east',split:true,collapsed:false,title:'操作按钮'" style="width:460px;">
  <table id="menuOptButGridData">
  </table>
</div>


</body>

</html>
